package com.kyle.pagingdemo

import androidx.room.TypeConverter


class ColorConverter {

    @TypeConverter
    fun objectToString(color: List<Int>): String {
        return color.joinToString()
    }

    @TypeConverter
    fun stringToObject(color: String): List<Int?> {
        return color.split(", ").map { it.toInt() }
    }
}